/*
 * Created on Aug 26, 2011
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package demo.basic.employeedb.core;

import java.util.List;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public interface EmployeeDB {
	// Throws DBException if Employee's ID exists.
	/**
	 * Add employee from DB
	 */
	public void add(Employee e) throws DBException;

	/**
	 * Remove employee from DB
	 * @param id
	 * @throws DBException
	 */
	public void remove(int id) throws DBException;

	/**
	 * Get employee given his id
	 * @param id
	 * @return
	 * @throws DBException
	 */
	public Employee get(int id) throws DBException;

	/**
	 * Gel all employees
	 * @return
	 */
	public List<Employee> getAll();
}